home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / programm.ing / ams__l~1.zoo / util / senv.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-05  |  490 b   |  23 lines

  1. #include <SoundEnvelope.h>
  2. #include <Sound.h>
  3. #include <stdio.h>
  4. #include <builtin.h>
  5. #include <osbind.h>
  6.  
  7. main(int argc, char*argv[])
  8. {
  9.     if (argc!=6) {
  10.         fprintf(stderr,"Usage:  %s Pitch PitchChange Volume VolumeChange NoisePeriod\n",argv[0]);
  11.     } else {
  12.         SoundEnvelope E(
  13.             (short)atoi(argv[1]),(short)atoi(argv[2]),
  14.             (short)atoi(argv[3]),(short)atoi(argv[4]),
  15.             600,-1,
  16.             (bool)(atoi(argv[5])>0)
  17.         );
  18.         SetNoisePeriod(atoi(argv[5]));
  19.         E.Start();
  20.         while (DoSounds()) Vsync();
  21.     }
  22. }
  23.